home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hentai Interactivo 69
/
HENTAI69.bin
/
flashplayers
/
fposx.dmg
/
Install Flash Player 8 OSX.app
/
Contents
/
Resources
/
Install Flash Player 8 OSX.rsrc
/
shsc_5000
< prev
next >
Wrap
Text File
|
2005-08-27
|
846b
|
18 lines
#!/bin/sh
echo "Attempting to make the following folder writable for Flash Player installation..." > ~/SetFolderWritable.log
# $1 is the path to the components folder, e.g. /Applications/Netscape.app/Contents/MacOS/components
echo "$1" >> ~/SetFolderWritable.log
# non recursive first, we must grant rwx to the owner and group, or else we cannot add or modify a file
chmod 775 "$1" >> ~/SetFolderWritable.log 2>&1
# now recursive
chmod -R 775 "$1" >> ~/SetFolderWritable.log 2>&1
ERROR=`grep -i "components: Permission denied" ~/SetFolderWritable.log`
ERROR2=`grep -i "components: Operation not permitted" ~/SetFolderWritable.log`
if [ "X$ERROR" != "X" ] || [ "X$ERROR2" != "X" ] ; then
# this means the installer has no read, write and execute permission on the folder
touch ~/SetFolderWritableFailed.txt
fi
rm -f ~/SetFolderWritable.log